<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script type="text/javascript" src="script/jquery-1.4.min.js"></script>
</head>
<script type="text/javascript">
	var stack = new Array(100) ;
	var clickCount = 0 ;
	stack[clickCount] = "firstTab" ;
	var currentActiveTabId = "" ;
	function changTab(url,obj){
		currentActiveTabId = $(obj).attr("id") ;
		if(currentActiveTabId != stack[clickCount]){
			clickCount++ ;
			stack[clickCount] = currentActiveTabId ;
		}
		$(obj).siblings().each(function(index,domElement){
			$(domElement).attr("class","right_Off") ;
		}) ;
		$(obj).attr("class","right_On") ;
		window.parent.frames[1].location.href = url ;
	}

	function closeTab(obj){
		if($(obj).parent().parent().attr("id") == currentActiveTabId){
			 clickCount-- ;
			 currentActiveTabId = stack[clickCount] ;
			 $("#" + stack[clickCount]).click() ;
			 
		}
		$(obj).parent().parent().unbind("click") ;
		$(obj).parent().parent().remove() ;
	}
</script>
<body>
<div class="right">
	<div class="right_" >
	<ul id="tabpanel">
	 <li id="firstTab" onclick="changTab('desktop.html',this)" class="right_On"><div>首页</div></li>
	</ul>
	</div>
</div>
</body>
</html>
